package com.zwh.se.design_pattern.creational.factory.b_simple_factory.service.impl;

import com.zwh.se.design_pattern.creational.factory.entity.AwardInfo;
import com.zwh.se.design_pattern.creational.factory.entity.ResponseResult;
import com.zwh.se.design_pattern.creational.factory.b_simple_factory.service.IFreeGoods;

/**
 * 优酷 会员服务
 *
 * @author yexi
 **/
public class YouKuMemberFreeGoods implements IFreeGoods {

    @Override
    public ResponseResult sendFreeGoods(AwardInfo awardInfo) {

        String phone = awardInfo.getExtMap().get("phone");
        System.out.println("发放优酷会员成功,绑定手机号: " + phone);
        return new ResponseResult("200", "优酷会员发放成功!");
    }
}
